package com.whmall.service.crm.provider;

import com.whmall.component.provider.AbstractSameProvider;
import com.whmall.service.crm.api.CompanyNotTradableApi;
import com.whmall.service.crm.entity.dto.company.CompanyNotTradableDTO;
import com.whmall.service.crm.entity.dto.company.CompanyNotTradableQueryCondition;
import com.whmall.service.crm.entity.dto.company.CompanyNotTradableReqDTO;
import com.whmall.service.crm.module.company.service.CompanyNotTradableService;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.Method;

import java.util.Date;
import java.util.List;

@DubboService(methods = {
        @Method(name = "companyNotTradableList", timeout = 60000)
})
public class CompanyNotTradableProvider extends AbstractSameProvider<CompanyNotTradableService, CompanyNotTradableQueryCondition> implements CompanyNotTradableApi {

    @Override
    public List<CompanyNotTradableDTO> companyNotTradableList(CompanyNotTradableReqDTO reqDTO) {
        return service.companyNotTradableList(reqDTO);
    }

    @Override
    public int delIneffective(Date date) {
        return service.delIneffective(date);
    }
}
